//input.js
Page({
  data: {
    focus: false,
    inputValue: ''
  },
  sarchRecords: function (e){
    // 使得输入框获取焦点
    this.setData({
      focus: true
    })
  },

  formSubmit:function(e){
    if (e.detail.value.cardNo || e.detail.value.cardNo != ''){
      var cardNo = e.detail.value.cardNo;
      //console.log('form发生了submit事件，携带数据为：', cardNo);
      wx.navigateTo({
        url: '/pages/use-records-list/use-records-list?cardNo=' + cardNo
      });
    }else{
      // 使得输入框获取焦点
      this.setData({
        focus: true
      })
    }
    
    
  }
  
})